package com.lck.blogmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lck.blogmanager.entity.UserEntity;
import com.lck.blogmanager.req.*;
import com.lck.blogmanager.res.UserInfoPageRes;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UserService extends IService<UserEntity> {
    Map<String,String> userLogin(UserLoginReq req);

    Page<UserInfoPageRes> userInfoPage(UserInfoPageReq req);

    Integer userRegister(UserRegisterReq req);

    void uploadPic(MultipartFile file);

    UserEntity getUserDetail(Integer userId);

    void changeUserStatus(ChangeUserStatusReq req);

    void resetPassword(Integer userId);

    void updatePassword(UpdatePasswordReq req);

    UserEntity infoDetail();


    String addPic(MultipartFile file);
}
